package ExtraDemo.demo07.MyVolitile2;

public class MyThread1 extends Thread {
    @Override
    public void run() {
        while (true) {
            synchronized (Money.lock){
                if (Money.money!=100000){
                    System.out.println("结合基金已经不是100000了");
                    break;
                }
            }
        }
    }
}
